import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
// import 'package:jpush_flutter/jpush_flutter.dart';

class CarPage extends StatefulWidget{
    @override
    _CarPageState createState() => _CarPageState();
}
class _CarPageState extends State<CarPage>{

    // final JPush jpush = new JPush();  //初始化极光插件
    @override
    void initState() {
        super.initState();
        
    }

    

    @override
    Widget build(BuildContext context){
        return Scaffold(
            appBar: new AppBar(
                automaticallyImplyLeading: false,
                title: const Text('功能开发中'),
            ),
            // body: Container(
            //     width: double.infinity,
            //     height: double.infinity,
            //     child: InkWell(
            //         child: Image.asset(
            //             "image/temp2.jpg",
            //             fit: BoxFit.fill,
            //         ),
            //         onTap: (){
            //             var fireDate = DateTime.fromMillisecondsSinceEpoch(DateTime.now().millisecondsSinceEpoch + 3000);
            //                 var localNotification = LocalNotification(
            //                     id: 234,
            //                     title: '测试推送title',
            //                     buildId: 1,
            //                     content: '看到了说明已经成功了',
            //                     fireTime: fireDate,
            //                     subtitle: '一个测试',
            //                 );
            //                 jpush.sendLocalNotification(localNotification).then((res) {
            //                     setState(() {
            //                         print(res);
            //                     });
            //                 });
            //         },
            //     )
            // ),
            body: new Center(
                // child: new Column(
                //     children:[
                //     //   new Text('结果: $debugLable\n'),
                //     new FlatButton(
                //         child: new Text('发送推送消息\n'),
                //         onPressed: () {
                //             // 三秒后出发本地推送
                //             var fireDate = DateTime.fromMillisecondsSinceEpoch(DateTime.now().millisecondsSinceEpoch + 3000);
                //             var localNotification = LocalNotification(
                //                 id: 234,
                //                 title: '测试推送title',
                //                 buildId: 1,
                //                 content: '看到了说明已经成功了',
                //                 fireTime: fireDate,
                //                 subtitle: '一个测试',
                //             );
                //             jpush.sendLocalNotification(localNotification).then((res) {
                //                 setState(() {
                //                     print(res);
                //                 });
                //             });

                //         }),

                //     ]
                // )

            ),
        );
    }
}
